<script setup>
import Son from "@/components/7透传Attributes/1.子组件.vue"
import {ref} from "vue"



function f() {
  alert(1);
}

let a = ref('a')

</script>

<template>
  <Son class="red" @click="f" :a-b="a"/>
</template>


<style scoped>
.red {
  color: red;
}
</style>
